package hk.ust.cse.comp3111.studentSchedule;

import java.util.ArrayList;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.TextView;

public class classSelection extends Fragment implements OnClickListener{

public classSelection(){}
	
	TextView courseCode, title;
	Spinner lectureSpinner, tutorialSpinner, labSpinner;
	
	

	@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
		
		View rootView = inflater.inflate(R.layout.class_selection, null , false);

        
        return rootView;
    }
	
	
	
	
	@Override
	public void onStart() {
		super.onStart();
		
		courseCode = (TextView) this.getView().findViewById(R.id.courseCode);
		title = (TextView) this.getView().findViewById(R.id.title);
		
		lectureSpinner  =  (Spinner) this.getView().findViewById(R.id.lectureSpinner);
		tutorialSpinner =  (Spinner) this.getView().findViewById(R.id.tutorialSpinner);
		labSpinner		=  (Spinner) this.getView().findViewById(R.id.labSpinner);
		
		String myValue = this.getArguments().getString("code");
		title.setText(myValue);
	
	}
	


	@Override
	public void onClick(View v) {
		
        }
	}
	
	